const mongoose = require('mongoose');

mongoose.connect('mongodb+srv://huwei:huwei040729@cluster0.awtd9dt.mongodb.net/consultation')
    .then(() => console.log('数据库连接成功'))
    .catch((err) => console.log(err));

module.exports = mongoose;